{% extends "base.html" %}
{% block head %}
    <head>
        <meta charset="UTF-8">
        <title>测试管理系统</title>
        <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
        <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
        <link rel="stylesheet" href="../../../static/layui/css/layui.css">
        <script src="../../../static/layui/layui.js"></script>
        <!--     <script type="text/javascript">try { Typekit.load(); } catch (e) { }</script> -->
        <script type="text/javascript" src="../../../static/js/tool_p.js"></script>
        <script src="../../../static/js/jquery-1.11.3.min.js"></script>
    </head>
{% endblock head %}
{% block left %}
    {{ super() }}
{% endblock left %}
{% block right %}
    {{ super() }}
    <!-- 修改name（页面名称） -->
    {% set name = '接口监控统计' %}
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>{{ name }}</legend>
    </fieldset>
    <!-- 页面私有部分 -->
    <table id='123' class="layui-table" style="margin-top:10px;margin-left:0;width:100%;word-wrap:normal;">
        <!-- <table class="table table-bordered"> -->
        <blockquote class="layui-elem-quote" style="font-size: 18px;color: forestgreen;font-weight: bold">
            点击接口id跳转至yapi查看详情
        </blockquote>
        <colgroup>
            <col width=5%>
            <col width=15%>
            <col width=5%>
            <col width=10%>
            <col width=5%>
            <col width=10%>
            <col width=55%>
            <col>
        </colgroup>
        <tr>
            <th><b>接口id</b></th>
            <th><b>接口名</b></th>
            <th><b>状态码</b></th>
            <th><b>响应时间(单位:ms)</b></th>
            <th><b>时间戳</b></th>
            <th><b>时间</b></th>
            <th><b>response</b></th>
        </tr>
        {% for i in err_data %}
            <tr>
                <td>
                    <a href="http://192.168.2.92:3000/project/{{ i[7] }}/interface/api/{{ i[1] }}"
                       style="color: rgb(58, 141, 255)">{{ i[1] }}</a>
                </td>
                <td>{{ i[6] }}</td>
                <td>{{ i[2] }}</td>
                <td>{{ i[3] }}</td>
                <td>{{ i[0] }}</td>
                <td>{{ i[5] }}</td>
                <td>{{ i[4] }}</td>

            </tr>
        {% endfor %}
        {% for i in timeout_data %}
            <tr>
                <td>
                    <a href="http://192.168.2.92:3000/project/{{ i[7] }}/interface/api/{{ i[1] }}"
                       style="color: rgb(58, 141, 255)">{{ i[1] }}</a>
                </td>
                <td>{{ i[6] }}</td>
                <td>{{ i[2] }}</td>
                <td>{{ i[3] }}</td>
                <td>{{ i[0] }}</td>
                <td>{{ i[5] }}</td>
                <td>{{ i[4] }}</td>

            </tr>
        {% endfor %}
    </table>

{% endblock right %}

<!-- 此模板现有部分，除页面名称外，其他均不可编辑 -->

